from django.conf.urls.static import static
from django.conf import settings
from django.urls import path, include

from web.apis.scrap import scrap

urlpatterns = [
    # 创建报废
    path('create_scrap/', scrap.create_scrap),
    # 获取报废列表
    path('get_scrap_list/', scrap.get_scrap_list),
    # 获取报废
    path('get_scrap/<str:scrap_id>/', scrap.get_scrap),
    # 更新报废
    path('update_scrap/<str:scrap_id>/', scrap.update_scrap),
    # 删除报废
    path('delete_scrap/<str:scrap_id>/', scrap.delete_scrap),
    # 搜索报废
    path('search_scrap/', scrap.search_scrap),
    # 报废图片
    path('upload_scrap_image/<str:scrap_id>/', scrap.upload_scrap_image),
    # 删除报废图片
    path('delete_scrap_image/<str:image_id>/', scrap.delete_scrap_image),
]